package com.bang.itstack.day05;

/**
 * @ClassName: Singleton01
 * @Desc:
 * 懒汉式
 * @author: <Bang>
 * @Date: 2021/10/21 19:19
 * @Version: 1.0
 * @Modified By:
 */
public class Singleton01 {


    private static Singleton01 instance;

    public static Singleton01 getInstance() {
        if (null != instance) {
            return instance;
        }
        instance = new Singleton01();
        return instance;
    }
}
